/**
 * 版权所有（c）2021. 上海海鼎信息工程股份有限公司，保留所有权利
 */
package com.lovely602.design.creation.builder.demo;

/**
 * 指挥者：项目经理
 *
 * @author lizhixing
 */
public class ProjectManager {

  private Decorator builder;

  public ProjectManager(Decorator builder) {
    this.builder = builder;
  }

  /**
   * 产品构建与组装方法
   */
  public Parlour decorate() {
    builder.buildWall();
    builder.buildTv();
    builder.buildSofa();
    return builder.getResult();
  }
}
